import { TableConfig } from '@/components/data-table/types'

export const tableConfig: TableConfig = {
  showToolbar: true,
  showCheckbox: true,
  showPagination: true,
  tableColumns: [
    {
      label: '名称',
      prop: 'name',
      minWidth: 150,
      slot: 'name',
      fixed: 'left'
    },
    {
      label: '联系人',
      prop: 'contact',
      width: 120
    },
    {
      label: '联系电话',
      prop: 'cellphone',
      width: 100
    },
    {
      label: '类型',
      prop: 'category',
      minWidth: 80,
      slot: 'category'
    },
    {
      label: '所属地区',
      prop: 'region',
      minWidth: 240,
      slot: 'region'
    },
    {
      label: '详细地址',
      prop: 'address',
      minWidth: 240
    },
    {
      label: '状态',
      prop: 'status',
      width: 80,
      slot: 'status'
    },
    {
      label: '操作',
      minWidth: 180,
      slot: 'operation',
      fixed: 'right'
    }
  ]
}
